package test;

import org.junit.Assert;
import org.junit.Test;

import server.core.base.Airplane;
import server.core.dao.Dao;
import server.core.dao.DaoFactory;
import server.core.dao.DaoFactory.daoType;

public class daoJUnit extends Assert {

	@Test
	public void memoryDao(){
		Dao mem=DaoFactory.getDao(daoType.MEMORY);
		for(int i=0;i<100000;i++)
			mem.saveObject(new Airplane("", 0));
		assertEquals(mem.getEntityMap(Airplane.class).size(), 100000L);
	}
	
	
}
